package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 *
 * @ClassName OrderFeginService
 * @Description TODO
 * @Author xufb
 * @Date 2024/5/8 19:40:49
 * @Version 1.0
 */
@FeignClient("gulimall-order")
public interface OrderFeignService {
    /**
     * 获取根据订单号订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】
     */
    @GetMapping("/order/order/status/{orderSn}")
    R getOrderByOrderSn(@PathVariable("orderSn") String orderSn);
}

